<template>
  <div>
    <span ref="num1"></span>
  </div>
</template>

<script>
// import { CountUp } from "./countUp.js";
import { CountUp } from "countup.js";
export default {
  data() {
    return {};
  },
  mounted() {
    new CountUp(this.$refs.num1, 1314521, {
      startVal: 100,
      decimalPlaces: 2,
      duration: 3,
      useGrouping: true,
      prefix: "¥",
      suffix: "元",
    }).start();
  },
};
</script>
